﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace 桌面视频录制
{
    [Serializable]
    public class DrawPaintBrush : DrawRectangle
    {
        public DrawPaintBrush() { }
        public override void Draw(System.Drawing.Graphics g)
        {
            Brush brush = new SolidBrush(this.PenColor);
            g.FillRectangle(brush, 0, 0, 2000, 2000);
            brush.Dispose();
            brush = null;
        }
        public override bool JudgeIsSelected(System.Windows.Forms.MouseEventArgs e)
        {
            return false;
        }
        public override bool JudgeIsInControlRegion(System.Windows.Forms.MouseEventArgs e)
        {
            return false;
        }
        public override void MoveLocation(System.Windows.Forms.MouseEventArgs e)
        {
            
        }
        public override void MouseMove(System.Windows.Forms.MouseEventArgs e)
        {
            
        }
        public override void ChangeSize(System.Windows.Forms.MouseEventArgs e)
        {
            
        }
        public override void DrawControlPoint(Graphics g)
        {
            
        }
        public override string ToString()
        {
            string printMsg = "[画刷(" + this.PenColor.ToString() + ")]->[ID:" + this.Id + "]";
            return printMsg;
        }
        public override string GetDrawObjectMsg()
        {
            string drawObjectMsg = "画刷->填充颜色[" + this.PenColor.ToString() + "]";
            return drawObjectMsg;
        }
    }
}
